<?php require_once('../../core/import.php');?>
<?php User::Permission('ACCOUNT_LICENCE_DELETE'); ?>
<?php
    if($_SERVER['REQUEST_METHOD']=='POST')
    {        
        #遍历
        foreach(@Functions::FormArgs('ID') as $Value)
        {
            if($Data=DB::GetRowByID('licence',$Value))
            {
                @unlink(Config::PATH_UPLOAD_ATTACHMENT_NEWS.'/'.$Data['PicturePath']);
            }
            DB::CExec('delete from licence where ID='.$Value);
        }

        #转向
        Functions::JsLocation($_SERVER['HTTP_REFERER']);
    }
?>